Salesforce UX API icon

Salesforce UX API

(0 reviews)

bs6-8cg/TMF622- ListProductOrder-Aria

==> TMF-622 List Product Order

This operation get the plan instance information from Aria (Billing System) by using plan instance id

URL
https://[localhost]:[port]/sfdc-ux/v1/{businessId}/productOrder
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one is "PR"-Puerto Rico
Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y
channelIdstringThe sourceY
targetSystemStringThis describes the end system request is for Eg: โ€œAsurionโ€.
Note - For Peacock Mobile Project, it's mandatory
Y
Query Param
nametypedescriptionrequired
productOrderItem.product.idStringThe client defined ID of the plan instanceN

Note - To work this functionality the queryParams.productOrderItem.product.id should be expected one.

Request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/sfdc-ux/sfdc-ux/v1/PR/productOrder?productOrderItem.product.id=8024X00000CFsRbQAL' \
--header 'X-Correlation-Id: 644e1dd7-2a7f-18fb681143258' \
--header 'channelId: SFDC-B2C' \
--header 'targetSystem: ARIA' \
--header 'client_id: abcde' \
--header 'client_secret: 123456'
Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

OK - listProduct request processed successfully, response body contains an entity corresponding to the requested resource.

{
    "relatedParty": [
        {
            "id": "23519213-23519143",
            "@type": "AccountRef"
        }
    ],
    "@type": "ProductOrder",
    "productOrderItem": [
        {
            "id": "6078",
            "@type": "Plan",
            "quantity": 1,
            "product": {
                "id": "8024X00000CFsRbQAL",
                "description": "Generic Device",
                "name": "LLA_General_Device",
                "status": "active",
                "@type": "PlanInstance",
                "productCharacteristic": [
                    {
                        "name": "Original Financed Amount",
                        "value": "1199.99",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Number of Payment Installments",
                        "value": "36",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Remaining Financed Amount",
                        "value": "1033.34",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Number of Installments Invoiced",
                        "value": "5",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Monthly Installment",
                        "value": "33.33",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Installment ID",
                        "value": "639524829248292",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Description (English)",
                        "value": "Samsung Galaxy S23 Ultra",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Description (Spanish)",
                        "value": "Samsung Galaxy S23 Ultra",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Established On",
                        "value": "2023-12-13",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Status",
                        "value": "ACTIVE",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Promotional Amount Total",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Promotional Monthly Amount",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Number of Promo Discounts",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Number of Promo Discounts Given",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Current Promotional Discount Balance",
                        "value": "0",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Promo Description (English)",
                        "value": "",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "Promo Description (Spanish)",
                        "value": "",
                        "@type": "PlanInstanceField"
                    },
                    {
                        "name": "last_bill_date",
                        "value": "2024-05-11T02:46:54"
                    },
                    {
                        "name": "next_bill_date",
                        "value": "2024-06-11T00:00:00"
                    },
                    {
                        "name": "bill_thru_date",
                        "value": "2024-06-10T00:00:00"
                    }
                ]
            }
        }
    ]
}
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
relatedPartyarrayRelated Entity reference. A related party defines party or party role linked to a specific entity.N
relatedParty.idstringClient specified account identifierN
relatedParty.@typestringRelated Party TypeN
productOrderItemarrayAn identified part of the order. A product order is decomposed into one or more order items.N
productOrderItem.idstringThe Aria assigned ID of the plan for this client plan instance idN
productOrderItem.quantityintegerThe number of units assigned to this instanceN
productOrderItem.@typestringType of orderItemN
productOrderItem.productobjectA product to be created defined by value or existing defined by reference.N
productOrderItem.product.idstringThe client defined ID of the plan instanceN
productOrderItem.product.namestringThe client defined ID of the plan on this instanceN
productOrderItem.product.descriptionstringThe name of the plan on this instanceN
productOrderItem.product.statusstringThe status code of the plan instanceN
productOrderItem.product.@typestringProduct typeN
productOrderItem.product. productCharacteristicarrayDescribes a given characteristic of an object or entity through a name/value pair.N
productOrderItem.product. productCharacteristic.namestringName of the characteristicN
productOrderItem.product. productCharacteristic.valuestringThe value of the characteristicN
productOrderItem.product. productCharacteristic.@typestringType of characteristicN
@typestringOrder typeN
productCharacteristic values
nametypedescriptionrequired
Original Financed AmountstringThe value that was assigned to this field on this plan instanceN
Number of Payment InstallmentsstringThe value that was assigned to this field on this plan instanceN
Remaining Financed AmountstringThe value that was assigned to this field on this plan instanceN
Number of Installments InvoicedstringThe value that was assigned to this field on this plan instanceN
Monthly InstallmentstringThe value that was assigned to this field on this plan instanceN
Installment IDstringThe value that was assigned to this field on this plan instanceN
Description (English)stringThe value that was assigned to this field on this plan instanceN
Description (Spanish)stringThe value that was assigned to this field on this plan instanceN
Established OnstringThe value that was assigned to this field on this plan instanceN
StatusstringThe value that was assigned to this field on this plan instanceN
Promotional Amount TotalstringThe value that was assigned to this field on this plan instanceN
Promotional Monthly AmountstringThe value that was assigned to this field on this plan instanceN
Number of Promo DiscountsstringThe value that was assigned to this field on this plan instanceN
Number of Promo Discounts GivenstringThe value that was assigned to this field on this plan instanceN
Current Promotional Discount BalancestringThe value that was assigned to this field on this plan instanceN
Promo Description (English)stringThe value that was assigned to this field on this plan instanceN
Promo Description (Spanish)stringThe value that was assigned to this field on this plan instanceN
last_bill_datedatetimeThe last date on which the plan instance was billedN
next_bill_datedatetimeThe next date on which the plan instance is scheduled to be billedN
bill_thru_datedatetimeThe date through which the plan instance has been billedN
=============================================================================================================================
==> TMF-622 Patch Product Order towards Aria

By using this operations you can activate the Master Plan

URL

https://[localhost]:[port]/sfdc-ux/v1/{businessId}/productOrder/{id}

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.Y
idstringUnique external identifier for Master Plan in Aria System (Client defined identifier for Master plan)Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API requestY
channeIdstringChannel to business: Can be one of: "SFDC-B2Cโ€, โ€œSFDC-B2B"
It is Conditionally Mandatory only for B2B and B2C as there are underlying conditions based on channelId received
Y
targetSystemStringThis describes the end system request is for Eg: โ€œAriaโ€, โ€œMatrixxโ€.
It is Conditionally Mandatory only for B2B and B2C as there are underlying conditions based on targetSystem received
Y
LOBStringThe Line of Business Identifier currently available is: POSTPAIDN

cURL request

curl --location --request PATCH '
https://nonprod.esb.cloud.lla.com/dev/sfdc-ux/sfdc-ux/v1/PR/productOrder/20240130-00010001_MPI_000'
\
--header 'X-Correlation-Id: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b' \
--header 'lob: POSTPAID' \
--header 'channelId: SFDC-B2C' \
--header 'targetSystem: ARIA' \
--header 'client_id: 784c9a6dd7ae49768816cab57fcf1fa1' \
--header 'client_secret: 187b259EB77441babbF611d2646C670d' \
--header 'Content-Type: application/json' \
--data-raw '{
    "relatedParty": [
        {
            "id": "20240130-00010001",
            "@type": "AccountRef"
        }
    ],
    "@type": "ProductOrder",
    "productOrderItem": [
        {
            "id": "01",
            "action": "modify",
            "@type": "AccountPlan",
            "quantity": 1,
            "product": {
                "id": "20240130-00010001_MPI_000",
                "status": "active"
            }
        }
    ]
}'
Definition:
nametypedescriptionrequired
relatedPartyarrayRelated Entity reference.Y
relatedParty.idstringClient-defined account identifierY
relatedParty.@typestringrelatedParty typeY
productOrderItemarrayAn identified part of the order. A product order is decomposed into one or more order items.Y
productOrderItem.idstringIdentifier of the line item (generally it is a sequence number 01, 02, 03, ...)N
productOrderItem.actionstringaction to be performed on the productY
productOrderItem.@typestringProduct order item typeN
productOrderItem.quantityintegerQuantity orderedN
productOrderItem.productobjectA product to be created defined by value or existing defined by reference.Y
productOrderItem.product.idstringThe client-defined identifier of the plan instance (master plan).Y
productOrderItem.product.statusstringThe status of this plan instance.Y
@typestringWhen sub-classing, this defines the sub-class entity nameN
Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200]

OK - patch request processed successfully, response body contains an entity corresponding to the requested resource.

{
    "state": "completed"
}
Definition:
nametypedescriptionrequired
statestringthe state of the orderN

Reviews